package top.go2do.common.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import top.go2do.common.module.UserPO;

/**
 * @author xingyuji
 * @date 2025/3/20 15:27
 * @description
 */
public interface UserRepository extends JpaRepository<UserPO, Long>, JpaSpecificationExecutor<UserPO> {
    UserPO findByUsername(String username);
    UserPO findByAppIdAndUsername(String appId, String username);
    UserPO findByAppIdAndEmail(String appId, String email);
    UserPO findByAppIdAndPhone(String appId, String phone);
}
